package com.test.aop;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/aop")
public class MyAopController {

    @Autowired
    private MyAopService1 myAopService1;

    @Autowired
    private MyAopService2 myAopService2;

    @RequestMapping("/test1")
    public void test1() {
         myAopService1.test();
    }

    @RequestMapping("/test2")
    public void test2() {
        myAopService2.test();
    }

}
